/*
package com.ck.express.db

import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.ck.express.db.dao.FailedDeliveryRequestDao
import com.ck.express.db.entity.FailedDeliveryRequest

@Database(
    entities = [FailedDeliveryRequest::class],
    version = 1,
    exportSchema = true // 保留 schema 有助于版本升级、迁移
)
abstract class AppDatabase : RoomDatabase() {
    abstract fun failedDeliveryRequestDao(): FailedDeliveryRequestDao

    companion object {
        @Volatile
        private var INSTANCE: AppDatabase? = null

        fun getInstance(context: Context): AppDatabase {
            return INSTANCE ?: synchronized(this) {
                val instance = Room.databaseBuilder(
                    context.applicationContext,
                    AppDatabase::class.java,
                    "express.db"
                ).build()
                INSTANCE = instance
                instance
            }
        }
    }
}
*/
